package com.oocl.aeat.service.impl;

import com.oocl.aeat.dao.SysUserDao;
import com.oocl.aeat.dao.impl.SysUserDaoImpl;
import com.oocl.aeat.pojo.SysUser;
import com.oocl.aeat.service.SysUserService;

public class SysUserServiceImpl implements SysUserService {
	private SysUserDao sysUserDao;
	
	public SysUserServiceImpl() {
		sysUserDao = new SysUserDaoImpl();
	}
	
	@Override
	public boolean login(String name, String pwd) {
		SysUser user = sysUserDao.querySysUserByNameAndPwd(name, pwd);
		if(user!=null){
			return true;
		}
		return false;
	}

}
